Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add eager workflow start sample #334

Merged

Conversation

antlai-temporal
Copy link
Contributor

What was changed

Add an example of starting a workflow in eager mode, a latency optimization.

Why?

We are launching this feature in PreRelease soon

Checklist

  1. Closes
    [Feature Request] Add Eager Workflow Start sample #333

Comment on lines +41 to +42
// 3. Set this flag to true to enable EWS.
EnableEagerStart: true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hrmm, wonder if it's a bit much to have an entire sample just to set true on a single workflow option (I wouldn't expect separate samples for every other start option). But I don't mind I guess if it makes sense generally.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is worth making a sample for since it also shows you have to reuse the client

@@ -0,0 +1,10 @@
### Steps to run this sample:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a short description here about eager workflow start and how the sample works like some of our other samples?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@antlai-temporal antlai-temporal merged commit 3cc0870 into temporalio:main Mar 7, 2024
3 checks passed
@antlai-temporal antlai-temporal deleted the add-eager-workflow-start branch March 8, 2024 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants